package com.ly.aps.system.provider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ly.aps.system.provider.mapper.ArchetypeMapper;
import com.ly.aps.system.provider.model.Archetype;
import com.ly.aps.system.provider.service.ArchetypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@RefreshScope
public class ArchetypeServiceImpl extends ServiceImpl<ArchetypeMapper, Archetype> implements ArchetypeService {

    @Override
    public String getNameFromId(Long id) {
        return this.getById(id).getName();
    }
}
